package com;

public class ErrorInfo {
	private String proertyPath;
	private String message;
	private Object invalidaValue;

	public ErrorInfo(String p, String m, Object v) {
		proertyPath = p;
		message = m;
		invalidaValue = v;
	}
	
	public ErrorInfo(String p, String m) {
		this(p,m,null) ;
	}

	public String getProertyPath() {
		return proertyPath;
	}

	public String getMessage() {
		return message;
	}

	public Object getInvalidaValue() {
		return invalidaValue;
	}

	
	public boolean equals(ErrorInfo o) {
//		System.out.println(this.proertyPath.toString() + "==========================" + this.message.equals(o.getMessage()) );
        
		return this.message.equals(o.getMessage()) ; 
//		return false ;
	}
}
